package cn.ronghuanet.permission.domain;

import cn.ronghuanet.basic.domain.BaseDomain;
import lombok.Data;

import java.util.List;

@Data
public class Permission extends BaseDomain {

    private String name;
    private String url;
    private String descs;
    private String sn;
    // 多对一的关系
    private Permission parent;

    // 子权限 一个父权限会有多个子权限
    private List<Permission> children;
}
